function move(ele, data, callback){
    clearInterval(ele.t);
    ele.t = setInterval(() => {
        let flag = true;
        for(let i in data){
            let now = parseInt(getStyle(ele, i));
            let speed = (data[i] - now) / 7;
            speed = speed < 0 ? Math.floor(speed) : Math.ceil(speed);
            ele.style[i] = now + speed + "px";
            if(data[i] !== now) flag = false;
        }
        if(flag){
            clearInterval(ele.t)
            callback && callback();
        }
    }, 30);
}
function getStyle(ele, attr){
    return getComputedStyle ? getComputedStyle(ele)[attr] : ele.currentStyle[attr];
}